<template>
  <div class="breack-divider">
    <div class="left-line" />
    <div class="divider-content">{{ text }}</div>
    <div class="right-line" />
  </div>
</template>

<script>
export default {
  props: {
    text: {
      type: String,
      required: true,
    },
  },
}
</script>

<style>
.breack-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.left-line,
.right-line {
  height: 1px;
  width: 54px;
  border-color: rgb(220 223 230);
  border-bottom: 1px solid #e4e7ed;
  transform-origin: center;
  transform: scaleY(.5);
}

.divider-content {
  color: #333;
  padding: 0 10px;
  font-size: 28rpx;
}
</style>
